﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using ConnectedComponents;

namespace SilverlightConnectedComponents
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
            Field = new Field();
            SizeChanged += Page_SizeChanged;
        }

        void Page_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            Field.Draw(LayoutRoot);
        }

        public Field Field { get; set; }
    }
}
